﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EFDemo.Models;

namespace EFDemo.Controllers
{
    public class HomeController : Controller
    {
        EFDemoContext context = new EFDemoContext();
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var student = context.Students;
            return View(student.ToList());
        }

    }
}
